package monster.com.cvh.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author: 13580
 * @data: 2018/4/3
 * @function:荣誉证书Bean
 */
public class HonorCertificateBean {
    /**
     * code : 1
     * data : [{"id":1,"obtain_time":"2016年10月","scholarship_name":"t","update_time":"2018-04-11 19:49:21.567756"}]
     * msg : ok
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        private static final long serialVersionUID = -7714581008384271705L;
        /**
         * id : 1
         * obtain_time : 2016年10月
         * scholarship_name : t
         * update_time : 2018-04-11 19:49:21.567756
         */

        private int id;
        private String obtain_time = "";
        private String scholarship_name = "";
        private String update_time = "";

        public DataBean() {
        }

        public DataBean(int id) {
            this.id = id;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof DataBean)) return false;
            DataBean dataBean = (DataBean) o;
            return
                    Objects.equals(getObtain_time(), dataBean.getObtain_time()) &&
                            Objects.equals(getScholarship_name(), dataBean.getScholarship_name()) &&
                            Objects.equals(getUpdate_time(), dataBean.getUpdate_time());
        }

        @Override
        public int hashCode() {

            return Objects.hash(getObtain_time(), getScholarship_name(), getUpdate_time());
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", obtain_time='" + obtain_time + '\'' +
                    ", scholarship_name='" + scholarship_name + '\'' +
                    ", update_time='" + update_time + '\'' +
                    '}';
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getObtain_time() {
            return obtain_time;
        }

        public void setObtain_time(String obtain_time) {
            this.obtain_time = obtain_time;
        }

        public String getScholarship_name() {
            return scholarship_name;
        }

        public void setScholarship_name(String scholarship_name) {
            this.scholarship_name = scholarship_name;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }
    }
}
